Ext.namespace('GBIF')
if(GBIF.MainToolbar) {
	Ext.override(GBIF.MainToolbar, {
			txtCloseProject: 'Close Project'
		,	txtProject: 'Project: '	
		,	txtView: 'View'
		,	txtOverview: 'Overview'
		,	txtData: 'Data'
		,	txtSummary: 'Summary'
		,	txtHelp: 'Help'
		,	txtAbout: 'About'
		,	txtGettingStarted: 'Getting Started'
		,	txtProjectWebsite: 'Project Website'
		,	txtReportIssue: 'Report Issue'
		,	msgAboutTitle: 'About Classification Service'
		,	msgAboutText: 'Developed By: GBIF & SilverBiology<br>Version: 1.0'
	});
}

if(GBIF.MainViewport) {
	Ext.override(GBIF.MainViewport, {
			msgNoticeTitle: 'Notice'
		,	msgCloseProject: 'Are you sure you want to close this project?'
	});
}

if(GBIF.ViewCard) {
	Ext.override(GBIF.ViewCard, {
			msgErrorTitle: 'Error'
		,	msgFatalError: 'Fatal Error'
	});
}

if(GBIF.OverviewPanel) {
	Ext.override(GBIF.OverviewPanel, {
			msgErrorTitle: 'Error'
		,	msgFatalError: 'Fatal Error'
		,	msgStatusError: 'Error in retrieving status.'
	});
}

if(GBIF.ProjectWindow) {
	Ext.override(GBIF.ProjectWindow, {
			title: 'GBIF Darwin Core Archive - Classification Service'
		,	txtLoadProject: 'Load Classification Service Project'
		,	txtCreateProject: 'Create Classification Service Project'
		,	msgLoadProjectInfo: 'If you have already created a project you can view it by entering your project code.'
		,	msgCreateProjectInfo: 'To create a new project enter the URL to your Darwin Core Archive and follow the instructions.'
		,	txtProjectCode: 'Project Code'
		,	txtDCAUrl: 'Darwin Core Archive URL'
		,	msgErrorTitle: 'Error'
		,	msgNoticeTitle: 'Notice'
		,	msgValidUrl: 'Please enter valid project url.'
		,	msgFatalError: 'Fatal Error'
		,	msgValidProjectCode: 'Please enter valid project code.'
		,	txtLanguage: 'Language:'
		,	txtHelp: 'Help'
		,	txtAbout: 'About'
		,	txtGettingStarted: 'Getting Started'
		,	txtProjectWebsite: 'Project Website'
		,	txtReportIssue: 'Report Issue'
		,	msgAboutTitle: 'About Classification Service'
		,	msgAboutText: 'Developed By: GBIF & SilverBiology<br>Version: 1.0'
	});
}

if(GBIF.ReclassifiyGrid) {
	Ext.override(GBIF.ReclassifiyGrid, {
			txtEmptyText: 'No information available.'
		,	msgNoticeTitle: 'Notice'
		,	txtSearch: 'Search'
		,	msgErrorTitle: 'Error'
		,	msgFatalError: 'Fatal Error'
		,	txtStartClassification: 'Start Classification'
		,	txtDisplayMsg: 'Displaying distinct species {0} - {1} of {2} found in {3} records.'
		,	txtEmptyMsg: 'No species to display.'
		,	msgStartClssify: 'You are about to classify {0} distinct names.  This should take approximatly {1} minutes to complete. We will attempt to classify first with "{2}" then if we can not find the higher taxa we will try "{3}".  During this time you will not be able to view the data.  If you are ready to start the classification click "Yes".'
	});
}

if(GBIF.SummaryPanel) {
	 Ext.override(GBIF.SummaryPanel, { 
			txtEmptyText: 'Summary not available.'
	 });
}

if(GBIF.ProcessWindow) {
	Ext.override(GBIF.ProcessWindow, { 
			title: 'Classification Configuration'
		,	txtBeginClassification: 'Begin Classification'
		,	txtCancel: 'Cancel'
		,	txtLoadProjectInfo: 'Directions: Select the type of update you wish to make to your occurrence file.'
		,	txtHigherTaxa: 'Update higher classification'
		,	txtQuickMode: 'Quick mode'
		,	txtQuickModeInfo: 'If quick mode is enabled this feature will only use distinct Family names for determining the higher classification.  If you do not have Family names then we suggest you do not use this feature.'
		,	txtAllAuthor: 'Update all authorships'
		,	txtMissingAuthor: 'Update missing authorship only'
		,	txtNoAuthor: 'Do not update authorships'
		,	txtPrimaryAuthority: 'Primary Authority'
		,	txtSecondaryAuthority: 'Secondary Authority'		
	});
}